<?php
	require('session.php');
	session_start();
	if(isset($_GET['logout']))
	{
		session_destroy();
		setcookie("user", "", time()-3600);
		header("Location:HomePage.php");
	}
?>

<html>
    <head>       
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Welcome Froshies!</title>
        <link rel="stylesheet" href="style.css" type="text/css" media="all" />
        <script src="jquery-1.7.2.min.js" type="text/javascript"></script>
		<script type ="text/javascript" src="login.js"></script>
 

<script type ="text/javascript" src="menujs.js"></script>

 		<script type ="text/javascript" src="Galleryjs.js"></script>
        
    </head>
    <body onload="galleryrun()">
        

<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

<div id="wrap">  
            <div id="header">
                <div>

                    <a href="HomePage.php"><img id="imgheader"></a>

                </div>
            </div>
            <div id="menu">
                 <ul id="nav">
 


                    <li><a href="HomePage.php" title="Home">Home</a></li>       
                    <li><a href="Campus.php"title="Campus">Campus</a></li>
                    <li><a href="Gallery.php" title="Gallery">Gallery</a></li>
                    <li><a href="Sponsor.php" title="Sponsors">Sponsors</a></li>
                    <li onmouseover="submenushow()" onmouseout="submenuhide()"><a href="LAMB.php" title="Lamb">Lasallian Ambassadors</a></li>
            
            
                    <li><a href="FAQ.php" title="FAQ">FAQ</a></li>  </ul>
            
            <ul id="submenu" onmouseover="submenushow()">
                               <li><a href="About.php">About us</a></li><br>
                                <li><a href="Com.php">Different Committees </a></li><br>
                        </ul>

</div>
     
            <div id="content">

                <div class="article">
                    <div class="inside">
                      <div id="about"><img src="images/lamb/template.png"/></div>
                    </div>                   
                </div>


            </div>
            




<div id="sidebar">


                <div class="widget" style="padding-bottom: 20px;">

                    <div class="inside">

                        <?php if(!($_COOKIE["user"]))
echo '<form style="margin-top:30px;" name="login" id="login" method="post" class="logination">
                            <ul>
                                <li>
                                    <h4 style="font-size:12pt;">Login</h4>
                                </li>
                                <li>
                                    <input name="username" placeholder="Username" id="username" type="text"/>	<br>
                                    <div class="mid" id="LoginError" style="DISPLAY: none" >
                                        Username not found.
                                    </div>
                                </li>
                                <li>
                                    <input name="password" placeholder="Password" id="password" type="password"/>	
										<br>
                                    <div class="mid" id="PasswordError" style="DISPLAY: none" >
                                        Password does not match.
                                    </div>
                                </li>
                                <li>
                                    <button  id="submitLogin" type="submit">Log-In</button> <h4 class="alignright">Not yet a member? </h4> 
                                </li>
                                <li>
                                    <a href="Register.php"><h4 class="alignright">Register Now!</h4></a>
                                </li>

                            </ul>
                        </form>';

else {
	echo 'Welcome, ' . $_COOKIE["user"] . ".<br><a href='HomePage.php?logout'><b>Logout<b></a>";
	
} ?>     
                    </div>

                </div>
            </div>



        

<div class="fb-like-box" data-href="http://www.facebook.com/pages/Lasallian-Ambassadors/226171910194" data-width="200" data-height="240" data-show-faces="true" data-stream="false" data-header="true"></div>

</div>
   







 </div>
</body>
</html>